<%--
  Created by IntelliJ IDEA.
  User: taohj
  Date: 2014/5/17
  Time: 13:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>


<div>
    <form>



        <table style="padding-left: 20px">


            <tr>
                <td>Id:</td>
                <td>  <input name="id" type="text" class="easyui-textbox" value="${requestScope.user.id}" readonly="readonly"/></td>
            </tr>
            <tr>
                <td>RealName:</td>
                <td><input name="realName" type="text" class="easyui-textbox" data-options="required:true"
                           value="${user.realName}"/></td>
            </tr>

            <tr>
                <td>NickName:</td>
                <td><input name="nickName" class="easyui-textbox" data-options="required:true"
                           value="${user.realName}"></td>
            </tr>


            <tr>
                <td>UserName:</td>
                <td><input name="userName" class="easyui-textbox" readonly="readonly" data-options="required:true"
                           value="${user.userName}"></td>
            </tr>

            <tr>
                <td>Sex:</td>
                <td><input name="sex" class="easyui-combobox" data-options="required:true,valueField: 'value',textField: 'name',url: functions.get('SysDictionaryGetByGroup')+'?groupName=UserSex',
                     onLoadSuccess:function(){
                                $(this).combobox('setValue','${user.sex}');
                            }
                "/></td>
            </tr>

            <tr>
                <td>Birthday</td>
                <td>

                    <input name="birthday" class="easyui-datebox" data-options="required:true"
                           value='<f:formatDate value="${user.birthday}"  pattern="yyyy-MM-dd"/>'>

                </td>
            </tr>

            <tr>
                <td>Address</td>
                <td><input name="address" class="easyui-textbox" data-options="required:true"
                           value="${user.address}"></td>
            </tr>

            <tr>
                <td>Phone</td>
                <td><input name="phone" class="easyui-textbox" data-options="required:true" value="${user.phone}">
                </td>
            </tr>

            <tr>
                <td>Email</td>
                <td><input name="email" class="easyui-textbox" data-options="required:true" value="${user.email}">
                </td>
            </tr>

            <tr>
                <td>QQ</td>
                <td><input name="QQ" class="easyui-textbox" data-options="required:true" value="${user.QQ}"></td>
            </tr>

            <tr>
                <td>HeadImage</td>
                <td><input name="headImage" class="easyui-textbox" value="${user.headImage}"></td>
            </tr>

            <tr>
                <td>Status</td>
                <td><input name="status" class="easyui-combobox" data-options="valueField: 'value',textField: 'name',required:true,url: functions.get('SysDictionaryGetByGroup')+'?groupName=UserStatus',panelHeight:'auto',
                     onLoadSuccess:function(){
                                $(this).combobox('setValue','${user.status}');
                            }
                "/>
                </td>
            </tr>


        </table>

    </form>
    <div style="text-align:center;padding:5px">
        <a href="javascript:void(0);" class="easyui-linkbutton" onclick="user.modifySubmit(this)">Submit</a>
        <a href="javascript:void(0);" class="easyui-linkbutton" onclick="util.closeDialog(this);">Cancel</a>
    </div>
</div>

<%--<script>
    if(!model.createSubmit){

    }

</script>--%>
